package com.medical.controller;

import com.medical.pojo.Centralized;
import com.medical.pojo.CentralizedVO;
import com.medical.service.CentralizedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("centralized")
public class CentralizedController {

    @Autowired
    private CentralizedService centralizedService;

    @RequestMapping("/findAll")
    public List<Centralized> findAll(@RequestBody CentralizedVO centralizedVO){
        return centralizedService.findAll(centralizedVO);
    }
}
